package com.sy.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;

//驾校表
public class DriSchool {
    private Integer driSchoolId;
    private String driName;
    private String driLoc;
    private String desc;
    private Integer locId;
    private String phone;
    private BigDecimal price;
    private String image;
    @JSONField(format = "yyyy-MM-dd")
    private Date createdDate;
    private String scale;
    private Integer lId;
    private Integer count;
    private Integer whole;

    public DriSchool() {
    }

    public DriSchool(Integer driSchoolId, String driName, String driLoc, String desc, Integer locId, String phone, BigDecimal price, String image, Date createdDate, String scale, Integer lId, Integer count, Integer whole) {
        this.driSchoolId = driSchoolId;
        this.driName = driName;
        this.driLoc = driLoc;
        this.desc = desc;
        this.locId = locId;
        this.phone = phone;
        this.price = price;
        this.image = image;
        this.createdDate = createdDate;
        this.scale = scale;
        this.lId = lId;
        this.count = count;
        this.whole = whole;
    }

    public Integer getDriSchoolId() {
        return driSchoolId;
    }

    public void setDriSchoolId(Integer driSchoolId) {
        this.driSchoolId = driSchoolId;
    }

    public String getDriName() {
        return driName;
    }

    public void setDriName(String driName) {
        this.driName = driName;
    }

    public String getDriLoc() {
        return driLoc;
    }

    public void setDriLoc(String driLoc) {
        this.driLoc = driLoc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getLocId() {
        return locId;
    }

    public void setLocId(Integer locId) {
        this.locId = locId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }


    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getScale() {
        return scale;
    }

    public void setScale(String scale) {
        this.scale = scale;
    }

    public Integer getlId() {
        return lId;
    }

    public void setlId(Integer lId) {
        this.lId = lId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getWhole() {
        return whole;
    }

    public void setWhole(Integer whole) {
        this.whole = whole;
    }

    @Override
    public String toString() {
        return "DriSchool{" +
                "driSchoolId=" + driSchoolId +
                ", driName='" + driName + '\'' +
                ", driLoc='" + driLoc + '\'' +
                ", desc='" + desc + '\'' +
                ", locId=" + locId +
                ", phone='" + phone + '\'' +
                ", price=" + price +
                ", image='" + image + '\'' +
                ", createdDate=" + createdDate +
                ", scale='" + scale + '\'' +
                ", lId=" + lId +
                ", count=" + count +
                ", whole=" + whole +
                '}';
    }
}
